package com.one.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@TableName("t_api_log")
@NoArgsConstructor
public class ApiLog {
    @TableId(type = IdType.AUTO)
    private Integer id ;
    /** 访问ip */
    private String ip ;
    /** 访问时间 */
    private Date createTime ;
    /** 对应的接口名称 */
    private String apiName ;

    public ApiLog(String ip, String apiName) {
        this.ip = ip;
        this.apiName = apiName;
        this.createTime=new Date();
    }
}
